<?php
/**
 * @copyright   Copyright (c) 2017 https://www.sapixx.com All rights reserved.
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      pillar<ltmn@qq.com>
 * 商品分类
 */
namespace app\bestbao\validate;
use think\Validate;

class Cost extends Validate{

    protected $rule = [
        'member_miniapp_id' => 'require|number',
        'type'              => 'require|number',
    ];

    protected $message = [
        'member_miniapp_id' => '应用丢失',
        'type'              => '应用类型必须选择',
    ];

    protected $scene = [
        'save'  => ['member_miniapp_id', 'type']

    ];
}